package com.example.educationalsystem.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.educationalsystem.entity.Vo.VoteVo;
import com.example.educationalsystem.entity.Vo.VoteVo;
import com.example.educationalsystem.entity.Vote;
import com.example.educationalsystem.mapper.IVoteMapper;
import com.example.educationalsystem.service.IVoteService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zpc
 * @since 2022-12-02
 */
@Service
public class VoteServiceImpl extends ServiceImpl<IVoteMapper, Vote> implements IVoteService {

    @Autowired
    private IVoteMapper iVoteMapper;

    @Override
    public List<VoteVo> getAllVote()
    {
        return iVoteMapper.getAllVote();
    }
    @Override
    public Page<VoteVo> getVotePage(Page<VoteVo> page , Wrapper wrapper)
    {
        return iVoteMapper.getVotePage(page,wrapper);
    }


}
